# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=vvmd
pkgver=0.9
pkgrel=0
pkgdesc="lower level daemon that retrieves Visual Voicemail"
url="https://gitlab.com/kop316/vvmd"
arch="all !s390x !riscv64" # no modemmanager-dev
license="GPL-2.0-only"
depends="mobile-broadband-provider-info"
makedepends="
	curl-dev
	dbus-dev
	glib-dev
	libphonenumber-dev
	meson
	modemmanager-dev
	"
source="https://gitlab.com/kop316/vvmd/-/archive/$pkgver/vvmd-$pkgver.tar.gz
	vvmd.desktop"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	install -Dm644 "$srcdir"/vvmd.desktop -t \
		"$pkgdir"/etc/xdg/autostart
}
sha512sums="
0fd5ca000787664c20fd2d9f4b3799f813219fd22fdf691710ccd1b2f6b5f1ccfd6e24c707b029d38744614499b853fa671b96162269acce1cc9b1daaa26ff16  vvmd-0.9.tar.gz
5f5d14ca6ca59b6b0f5bbdef8ab0a6a95fe057846b98ba49933981452eb1743d9825cb2e5f87a28b0571b5f45eac06a453c01ecee34bd3996fc14e13ad786a6e  vvmd.desktop
"
